home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 80 / CD Actual 80 Julio-Agosto 2003.iso / Linux / LinuxGazette / lg / issue91 / misc / mathew / code / pvproc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-05-20  |  1.6 KB  |  49 lines

  1. /* VPX definitions.  */
  2.  
  3. #define VPX_BUSY_TIMEOUT HZ/50   /* 20ms Delay for the FP to get ready */
  4.  
  5. #define VPX_VERSION "0.1"
  6. #define VPX_DATE "November, 2002"
  7.  
  8. #define VPX_REG_JEDEC 0x00
  9. #define VPX_JEDEC_ID 0xec
  10.  
  11. #define VPX_REG_PARTNUM0 0x01
  12. #define VPX_REG_PARTNUM1 0x02
  13.  
  14. #define VPX_3224D_ID 0x31
  15. #define VPX_3225D_ID 0x30
  16.  
  17. #define VPX_PARTNUM1_ID 0x72
  18.  
  19.  
  20. #define FPSTA 0x35
  21. #define FPRD  0x36
  22. #define FPWR  0x37
  23. #define FPDAT 0x38
  24.  
  25.  
  26. /* Custom "ioctl" commands. Actually these ioctls are sent to the respective
  27.  * i2c device driver routines of the video processors. The layering is as 
  28.  * shown below.
  29.  *           /->Tuner Driver (I2C) (tuner.c)
  30.  *         /
  31.  * VFS->V4L-Driver (pvcl.c) ->Display Driver (I2C) (embedded in pvcl.c)
  32.  *        \
  33.  *          \->Video Processor Driver (I2C) (vpx322xd.c)
  34.  *
  35.  * TODO: Check for conflicts with existing linux IOCTLS. There is a remote
  36.  * chance that some wild application might wheedle an ioctl past the V4L
  37.  * layer and into one of the I2C drivers. */
  38.  
  39. #define VPROC_INIT           _IOW('v', 1, int) /* Init video processor */
  40. #define VPROC_SET_CAP_MODE   _IOW('v', 2, int)  /* Set capture settings. */
  41. #define VPROC_START_CAPTURE  _IOW('v', 3, int)  /* Start capture */
  42. #define VPROC_STOP_CAPTURE   _IOW('v', 4, int)  /* Stop  capture */
  43. #define VPROC_GET_CAP_MODE   _IOR('v', 5, int)  /* Get settings */
  44. #define VPROC_SET_WINDOW     _IOW('v', 6, struct video_window) 
  45.                                              /* Set the window parms. */
  46.  
  47. #define VPROC_SET_PICTURE    _IOW('v', 7, struct video_picture)
  48.                                              /* Set the picture parms. */
  49.